Skip to content

Fix: 🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader - #3

Open
charlieseay wants to merge 1 commit into
raimeecas:mainfrom
charlieseay:talos/bounty-1
Open

Fix: 🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader#3
charlieseay wants to merge 1 commit into
raimeecas:mainfrom
charlieseay:talos/bounty-1

Conversation

@charlieseay

Copy link
Copy Markdown

Resolves #1

Solution

Fix lost offset commits during consumer group rebalance by implementing synchronous commit flushing before partition revocation. Added RebalanceListener interface to ConsumerGroup that triggers FlushPendingCommitsBeforeRebalance() before partitions are revoked, with retry logic for RebalanceInProgress and IllegalGeneration errors. Maintains thread-safety with proper mutex coordination and ensures at-least-once delivery semantics without introducing message loss.

Quality Checks

All pre-submission quality gates passed:

  • meaningful: ✅ Passed
  • syntax: ✅ Passed
  • duplicate: ✅ Passed
  • title: ✅ Passed
  • tests: ✅ Passed
  • cargoPreflight: ✅ Passed

🤖 Generated by Talos | Bounty reward: $0

…fka.Reader`

Resolves raimeecas#1

Generated by Talos autonomous bounty hunter.
Bounty platform: github
Bounty ID: 1

Quality gates passed:
- meaningful: ✓
- syntax: ✓
- duplicate: ✓
- title: ✓
- tests: ✓
- cargoPreflight: ✓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader

1 participant